<!--

    Copyright 2016-2017, Huawei Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<!DOCTYPE html>
<html>
<head>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
        <link href="/openoui/extsys/sdncontroller/bak/css/bootstrap.min.css" rel="stylesheet"/>
        <link href="/openoui/extsys/sdncontroller/bak/css/VMMain.css" rel="stylesheet"/>
        <link href="/openoui/extsys/sdncontroller/bak/css/bootstrap-table.min.css" rel="stylesheet"/>
        <script type="text/javascript" src="/openoui/extsys/sdncontroller/bak/js/jquery-1.11.2.min.js"></script>
        <script type="text/javascript" src="/openoui/extsys/sdncontroller/bak/js/controller.js"></script>
        <script type="text/javascript" src="/openoui/extsys/sdncontroller/bak/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="/openoui/extsys/sdncontroller/bak/js/bootstrap-table.min.js"></script>
        <script type="text/javascript" src="/openoui/extsys/sdncontroller/bak/js/bootstrap-table-filter-control.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
              loadControllerData();
            });
            function operateFormatter(value, row, index) {
                return ['<img class="siteDeleteImg" src="images/delete.png" href="javascript:void(0)" style="cursor: pointer" name="title" title="Delete" />']
                        .join('');

            }
            window.operateEvents = {
                'click .siteDeleteImg': function (e, value, row, index) {
                    // TO DO ajex call for delete
                    deleteController(row["sdnControllerId"]);
                }
            };
        </script>
    </head>
<body id="open_base_site_cotentBody" class="cotentBody ng-scope">
<div class="container-fluid ms-controller">

    <div class="uploadBtn">
        <div id="open_base_tpL_userHeader" class="userHeader">
            <div id="open_base_tpL_buttonGroup" class="openoButton_buttonGroupClass">
                <div
                        class="openo openo-widget-button openoButton_buttonClass_parent ng-isolate-scope openoButton_buttonClass defaultbutton openoButton_button_default"
                        tabindex="0" id="false" text="res.brApp_ui_res_btn_create" icon-url="/openoui/extsys/sdncontroller/bak/images/add.png"
                        cls="defaultbutton" click="clickAdd"
                        style="display: inline-block; padding-left: 0px; padding-right: 0px;">
                    <div class="openoButton_buttonInnerClass openo-corner-all openoButton_Image" id="false_button">
                            <span class="openo-widget-button-image openoButton_buttonLeftImg"
                                  style="background-image: url(images/add.png);"></span><span
                            class="openoButton_buttonCenterText openoButton_buttonCenterTextFont">Create</span><span
                            class="openo-widget-button-image openoButton_buttonImgDefault"></span>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <div class="row-fluid" data-name="table_zone">
        <div id='ict_virtualApplication_table_div'>
            <div>
                <div class="top">
                    <table id="controller" data-pagination="true" data-page-size="10"
                           data-pagination-first-text="First" data-pagination-pre-text="Previous"
                           data-pagination-next-text="Next" data-pagination-last-text="Last" data-filter-control="true">
                        <thead id="controller" class="openo-table-thead">
                        <tr class="active">
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="name" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_name_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip openoTable_sortable leftHeaderAlign  openo-table-disable-element ">Name
                                            </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="protocol" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_protocol_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Protocol
                                            </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="productName" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_productname_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Product
                                                Name</span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="type" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_type_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Type
                                            </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="vendor" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_vendor_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Vendor
                                            </span>
                                </div>
                            </th>

                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="version" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_version_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Version
                                            </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="description" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_description_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Description
                                            </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="createtime" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_createtime_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Create
                                                Time </span>
                                </div>
                            </th>
                            <th
                                    class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                    data-field="operation" data-sortable="true" data-filter-control="input">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
                                            <span id="ctrler_operation_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Operation
                                            </span>
                                </div>
                            </th>
                            <th class="openo-table-state-default openo-table-th openo-table-disable-element  leftHeaderAlign"
                                align="center" data-formatter="operateFormatter" data-events="operateEvents">
                                <div class="openo-table-th-border"></div>
                                <div class="DataTables_sort_wrapper openo-ellipsis ">
							                <span id="ctrler_nativeID_sorticon"
                                                  class="openo-table-th-sorticon overflow_elip  leftHeaderAlign  openo-table-disable-element ">Actions
                                            </span>
                                </div>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!-- <div id="tpListopenotable_pagination_wrapper" class="openo-table-pagination-wrapper" style="display: block;"><div class="pagination-container openo-pagination-theme openo-pagination"><div class="openoPagination_openoPaginationLengthOptions" id="tpListopenotable_wrapper_div"><input readonly="true" class="openo-pagination-select openopaginationselect" value="" id="tpListopenotable_wrapper_input" actualval="20" style="width: 32px;"><span class="openo-pagination-selectspan openopaginationselectspan" id="tpListopenotable_wrapper_trigger"></span></div><label style="display: block;float:left;">Total records: 23</label><li class="active"><span class="current prev openo-disabled" id="tpListopenotable_wrapper_prev">&nbsp;</span></li><ul><li class="active"><span class="current" id="tpListopenotable_wrapper_page_link_1">1</span></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_2">2</a></li><li><a class="page-link" id="tpListopenotable_wrapper_page_link_3">3</a></li><li><a class="page-link next" id="tpListopenotable_wrapper_next">&nbsp;</a></li></ul></div></div> -->

    <div id="vmAppDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h4 class="modal-title" id="myModalLabel">
                            <span>Create</span>
                        </h4>
                    </div>
                    <form class="form-horizontal" role="form" id="controllerForm">
                        <div id="wizard">
                            <div class="modal-body">
                                <ul class="nav nav-pills nav-justified vmapp-margin">
                                </ul>
                                <div class="tab-content">
                                    <div class="tab-pane active" id="basicTab">
                                        <div class="form-group" ms-class="has-error:vmAppDialog.name==''">
                                            <label class="col-sm-3 control-label"> <span>Name</span> <span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="name" name="name" class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>URL</span> <span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="url" name="url" class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>User Name</span> <span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="userName" name="userName"
                                                       class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Password</span> <span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="password" id="password" name="password"
                                                       class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Version</span><span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="version" name="version" class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Vendor</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="vendor" name="vendor" class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Description</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="description" name="description"
                                                       class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Protocol</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <select class="form-control"
                                                        style="padding-top: 0px; padding-bottom: 0px;" id="protocol"
                                                        name="protocol">
                                                    <option value="netconf">netconf</option>
                                                    <option value="snmp">snmp</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Product Name</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="productName" name="productName"
                                                       class="form-control"/>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-3 control-label"> <span>Type</span><span
                                                    class="required">*</span>
                                            </label>
                                            <div class="col-sm-7">
                                                <input type="text" id="type" name="type"
                                                       class="form-control"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn SDBtn" data-dismiss="modal" aria-hidden="true"
                                        id="createController">
                                    <span id="nfv-virtualApplication-iui-text-cancelBtn">OK</span>
                                </button>
                                <button type="button" class="btn button-previous SDBtn">
                                    <span id="nfv-virtualApplication-iui-text-previousBtn">Cancel</span>
                                </button>

                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="filterTpLogicalType_select_popupcontainer" class="openo openo-select-popup-container openo-hide"
     style="width: 155px; max-height: 130px; left: 628px; top: 104px; z-index: 1761;">
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_0">
        <label class="openo-ellipsis openo-select-blank-item"
               style="width: 100%; display: block; height: 20px;"></label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_1">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">ETH</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_2">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;" title="POS">POS</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_3">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Trunk</label>
    </div>
    <div class="openo-select-item openo-ellipsis  " id="filterTpLogicalType_openo-select-id_4">
        <label class="openo-ellipsis " style="width: 100%; display: block; height: 20px;">Loopback</label>
    </div>
</div>


</body>
</html>